package com.weasing.res.dao.impl;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.weasing.res.dao.IWxAnswerDao;
import com.weasing.res.dao.base.impl.BaseDaoImpl;
import com.weasing.res.domain.WxAnswer;

@Repository
public class WxAnswerDaoImpl extends BaseDaoImpl<WxAnswer> implements
		IWxAnswerDao {

	@Override
	public List<WxAnswer> findWxAnswerByQid(int qid) {
		String hql = "from WxAnswer wa where wa.qid = ?";
		List<WxAnswer> list = (List<WxAnswer>) this.getHibernateTemplate()
				.find(hql, qid);
		return list;
	}

}
